﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
//using System.Web.Configuration;
using Microsoft.WindowsAzure.ServiceRuntime;

namespace nwrole.lib {
    public static class GlobalSettings {
        public static string OrchestratorModelConnectionString {
            get {
                if (RoleEnvironment.IsAvailable) {
                    return RoleEnvironment.GetConfigurationSettingValue("OrchestratorModelConnectionString");
                } else {
                    return ConfigurationManager.ConnectionStrings["OrchestratorModelConnectionString"].ConnectionString;
                }

            }
        }
    }
}
